package org.lw.aop.service.impl;

import org.lw.aop.service.Caculator;
import org.springframework.stereotype.Service;

@Service
public class MyCaculator implements Caculator {
    public void add(int i, int j) {
        System.out.println("add method running...");
        System.out.println(i + j);
    }
    public void sub(int i, int j) {
        System.out.println("sub method running...");
        System.out.println(i - j);
    }
    public void mul(int i, int j) {
        System.out.println("mul method running...");
        System.out.println(i * j);
    }
    public void div(int i, int j) {
        System.out.println("div method running...");
        System.out.println(i / j);
    }
}
